﻿using System.Linq;
using nsadv.Statistic.Domain;
using nsadv.Statistic.Repository;

namespace nsadv.Statistic.Services
{
	public class Classifier<TEntity> where TEntity: Entity
	{
		protected readonly IRepository<TEntity> Repository;

		public Classifier(IRepository<TEntity> repository)
		{
			Repository = repository;
		}

		public IQueryable<TEntity> All
		{
			get { return Repository.All; }
		}

		public TEntity ById(string id)
		{
			return Repository.ById(id);
		}
	}
}
